package cn.tedu.log.pojo.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class LogListVO {
    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("操作模块ID")
    private Integer modelId;

    @ApiModelProperty("操作模块")
    private String model;

    @ApiModelProperty("操作描述")
    private String content;

    @ApiModelProperty("操作对象ID")
    private Integer objectId;

    @ApiModelProperty("操作人ID")
    private Integer managerId;

    @ApiModelProperty("操作人姓名")
    private String managerName;

    @ApiModelProperty("行为")
    private String act;

    @ApiModelProperty("行为作用地址")
    private String uri;

    @ApiModelProperty("操作人操作IP")
    private String ip;

    @ApiModelProperty("创建时间/操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
